package com.songlanyun.modules.refillorder.model;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.songlanyun.common.drive.RootEntity;
import com.songlanyun.common.drive.ValueObject;
import com.songlanyun.common.enums.OrderConstant;
import com.songlanyun.common.enums.RefillOrderConstant;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Null;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 充值卡订单
 *
 * @author Mark
 * @email sunlightcs@gmail.com
 * @date 2020-11-16 14:26:32
 */
@Data
public class RefillCardOrderDTO  implements ValueObject {
    private static final long serialVersionUID = 1L;

    /**
     * 支付方式
     * 1：微信
     * 2：支付宝
     * 10 支付宝汇付
     */
    @NotNull(message = "支付方式不能为空")
    private Integer payMode;


    /**
     * 充值卡id
     */
    private Long refillCardId;

    /**
     * 会员id
     */
    private Long userId;

    @Null
    private String client;

    private BigDecimal money;

    /**
     * 经纬度
     */
    private String longitude;
    private String latitude;

    private Long cardId;


}
